package com.black.app.service.my;

import com.black.app.domain.my.AppMyData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.black.app.domain.req.my.mydata.*;
import com.black.app.domain.resp.my.mydata.AppMyDataResp;
import com.github.pagehelper.PageInfo;

/**
* @author 18494
* @description 针对表【app_my_data(我的数据(8类)表)】的数据库操作Service
* @createDate 2024-10-23 20:49:29
*/
public interface AppMyDataService extends IService<AppMyData> {

    PageInfo<AppMyDataResp> paginationQuery(AppMyDataQueryReq req);

    boolean editWeight(AppMyDataWeightDetailAddReq req);

    boolean editHabit(AppMyDataHabitDetailAddReq req);

    /**
     * 根据喝水记录详情更新喝水记录
     * @param req
     * @return
     */
    boolean editDrink(AppMyDataDrinkDetailAddReq req);

    /**
     * 根据热量记录详情更新热量记录
     * @param req
     * @return
     */
    boolean editCalorie(AppMyHeatDetailAddReq req);

    boolean editMenstrual(AppMyMenstrualDetailAddReq req);

    boolean editMove(AppMyMoveDetailAddReq req);

    boolean editWaist(AppMyWaistlineDetailAddReq req);

    boolean editStep(AppMyWalkDetailAddReq req);
}
